export function formatTime(time: string | null | undefined): string {
  if (!time) return '-'
  
  const date = new Date(time)
  if (isNaN(date.getTime())) return '-'

  return date.toLocaleString('zh-CN', {
    year: 'numeric',
    month: '2-digit',
    day: '2-digit',
    hour: '2-digit',
    minute: '2-digit'
  })
} 